<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>登陆页面 | 中康齿科管理中心</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="alternate icon" type="image/png" href="/static/admin/assets/i/favicon.png">
    <link rel="stylesheet" href="/static/admin/assets/css/amazeui.min.css"/>
    <style type="text/css">
        .header {text-align: center;}
        .header h1 {font-size: 200%;color: #333;margin-top: 30px;}
        .header p {font-size: 14px;}
    </style>
</head>
<body>
<div class="header">
    <div class="am-g">
        <h1>中康齿科管理中心</h1>
        <p>Management Center System<br/>系统管理中心</p>
    </div>
    <hr />
</div>
<div class="am-g">
    <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
        <h3>登录</h3><hr>
        <form class="am-form">
            <label for="account">账号:</label>
            <input type="text" name="account" id="account" placeholder="请输入账号"><br>
            <label for="password">密码:</label>
            <input type="password" name="password" id="password" placeholder="请输入密码"><br>
            <label for="remember-me"><input value="1" name="remember" id="remember-me" type="checkbox">记住密码</label><br />
            <div class="am-cf">
                <input type="button" value="登 录" class="am-btn am-btn-primary am-btn-sm am-fl">
                <input type="button" value="忘记密码 ^_^? " class="am-btn am-btn-default am-btn-sm am-fr" style="display: none;">
            </div>
        </form>
        <hr><p>© 2018 AllMobilize, Inc. Licensed under MIT license.</p>
    </div>
</div>
{include file="common:modal" /}
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript" src="/static/admin/assets/js/amazeui.js"></script>
<script src="//cdn.amazeui.org/amazeui/2.7.2/js/amazeui.min.js"></script>
<script type="text/javascript" src="/static/admin/js/common.js"></script>
<script type="text/javascript">
$(function () {
    $('.am-cf input:first').on('click', function () {
        var form = $('.am-form');
        var flag = false;
        $('[placeholder]', form).each(function () {
            var sender = $(this);
            if (sender.val() == ''){
                ck_alert(sender.attr('placeholder'));
                flag = true;return false;
            }
        })
        if (flag){
            return;
        }
        $.ajax({
            type:'post',
            url:"{:url('doLogin')}",
            dataType:'json',
            data:form.serialize(),
            success:ajax_success_func
        });
    });
});
</script>
</body>
</html>
